(function(window){
		var u={};
function h(id,t){
	if(typeof id!=="object"){
		var w=id.split("=");
		this.f=w[0];
		switch(w[0]){
			case "id":var m=document.getElementById(w[1]);this.k=m;if(t=="*"){return m;}
			break;
			case "class":var m0=document.getElementsByClassName(w[1]);this.k=m0;if(t=="*"){return m0;}
			break;
			case "name":var m2=document.getElementByName(w[1]);this.k=m2;if(t=="*"){return m2;}
			break;
			case "tag":var m3=document.getElementsByTagName(w[1]);this.k=m3;if(t=="*"){return m3;}
			break;
			case "类":var m4=document.getElementsByClassName(w[1]);this.k=m4;if(t=="*"){return m4;}
			break;
			case "名称":var m5=document.getElementByName(w[1]);this.k=m5;if(t=="*"){return m5;}
			break;
			case "标签":var m6=document.getElementsByTagName(w[1]);this.k=m6;if(t=="*"){return m6;}
			break;
			//default:this.k=id;if(t=="*"){return id;}
			}
	}else{this.k=id;this.p="object";if(t=="*"){return id;}}
		}
		
		h.prototype.背景颜色=function(a){
			if(this.f=="id"||this.p=="object"){this.k.style.backgroundColor=a;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundColor=a;}}
			}
			
	h.prototype.背景图像=function(value,h){
	var b={线性渐变:"linear-gradient",径向渐变:"radial-gradient",url:"url",重复线性渐变:"repeating-linear-gradient",重复径向渐变:"repeating-radial-gradient"}
	var k=value.indexOf("(");var k2=value.slice(0,k-1);var k3=value.slice(0,k);
	for(var i in b){
			if(k3==i){
				if(h){
				switch(h){
					case "椭圆":value="background-image:"+b[i]+"("+"ellipse,"+value.slice(k+1,value.length);
					break;
					case "圆形":value="background-image:"+b[i]+"("+"circle,"+value.slice(k+1,value.length);
					break;
					default:value="background-image:"+b[i]+value.slice(k,value.length);
					}
				}else{
					value="background-image:"+b[i]+value.slice(k,value.length);
					}
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.cssText=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.cssText=value;}}
	};
	
	h.prototype.背景附着=function(v){//+-
	var b={滚动:"scroll",固定:"fixed",继承:"inherit"}
		for(var i in b){
			if(v==i){
				v=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.backgroundAttachment=v;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundAttachment=v;}}
	
	};

h.prototype.背景图位置=function(v){
if(this.f=="id"||this.p=="object"){this.k.style.backgroundPosition=v;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundPosition=v;}}
	};


h.prototype.背景图重复=function(v){
	var b={水平重复:"repeat-x",默认重复:"repeat",垂直重复:"repeat-y",只显示一次:"no-repeat",继承:"inherit"};
	var q="";
	for(i in b){
			if(value==i){
				v=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.backgroundRepeat=v;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundRepeat=v;}}
	};
	

h.prototype.背景剪裁=function(v){
	var b={边框盒:"border-box",内边盒:"padding-box",内容盒:"content-box",文本:'text'}
		for(var i in b){
			if(v==i){
				v=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.backgroundClip=v;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundClip=v;}}
	};
	
h.prototype.背景原点=function(v){
	var b={边框盒:'border-box',内边盒:'padding-box',内容盒:'content-box'}
		for(i in b){
			if(v==i){
				v=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.backgroundOrigin=v;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundOrigin=v;}}
	};

h.prototype.背景大小=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.backgroundSize=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.backgroundSize=value;}}
		 	
	};
h.prototype.边框=function(value){
	
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(j in h){
		for(i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
    value=g;
	
		if(this.f=="id"||this.p=="object"){this.k.style.border=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.border=value;}}
		};

h.prototype.边框下部=function(value){//+-
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(j in h){
		for(i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
		value=g;
		if(this.f=="id"||this.p=="object"){this.k.style.borderBottom=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottom=value;}}
	};

h.prototype.边框下部颜色=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderBottomColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottomColor=value;}}
	};

h.prototype.边框下部样式=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.borderBottomStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottomStyle=value;}}
	};
	
h.prototype.边框下部宽=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderBottomWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottomWidth=value;}}
	};

h.prototype.边框颜色=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderColor=value;}}
	};
	
h.prototype.边框左=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(var j in h){
		for(var i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
	value=g;
	if(this.f=="id"||this.p=="object"){this.k.style.borderLeft=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderLeft=value;}}
	};

h.prototype.边框左边颜色=function(value){
		if(this.f=="id"||this.p=="object"){this.k.style.borderLeftColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderLeftColor=value;}}
	};

h.prototype.边框左边样式=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
			if(this.f=="id"||this.p=="object"){this.k.style.borderLeftStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderLeftStyle=value;}}
	};

h.prototype.边框左边宽=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderLeftWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderLeftWidth=value;}}
	};

h.prototype.边框右边=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(j in h){
		for(i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
	value=g;
 if(this.f=="id"||this.p=="object"){this.k.style.borderRight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderRight=value;}}
	};

h.prototype.边框右边颜色=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderRightColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderRightColor=value;}}
	};

h.prototype.边框右边样式=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
		if(this.f=="id"||this.p=="object"){this.k.style.borderRightStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderRightStyle=value;}}
	};
	
h.prototype.边框右边宽=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderRightWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderRightWidth=value;}}
	};

h.prototype.边框样式=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.borderStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderStyle=value;}}
	};

h.prototype.边框顶部=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(var j in h){
		for(var i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
		value=g;
	if(this.f=="id"||this.p=="object"){this.k.style.borderTop=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTop=value;}}
	};
		
h.prototype.边框顶部颜色=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderTopColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTopColor=value;}}
	};

h.prototype.边框顶部样式=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.borderTopStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTopStyle=value;}}
	};

h.prototype.边框顶部宽=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderTopWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTopWidth=value;}}
	};

h.prototype.边框宽=function(d,value){
		if(this.f=="id"||this.p=="object"){this.k.style.borderWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderWidth=value;}}
		};

h.prototype.轮廓=function(value){
	var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset'};
	var h=value.split(" ");
	var g="";
	for(j in h){
		for(i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
		value=g;
if(this.f=="id"||this.p=="object"){this.k.style.outline=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.outline=value;}}
	};

h.prototype.轮廓颜色=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.outlineColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.outlineColor=value;}}
	};

h.prototype.轮廓样式=function(value){
var b={无:"none",垄起:"ridge",隐藏: 'hidden',点线: 'dotted',虚线: 'dashed',实线: 'solid',双线: 'double',凹槽:'groove',凹边:'inset',凸边:'outset',}
	if(this.f=="id"||this.p=="object"){this.k.style.outlineStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.outlineStyle=value;}}
	};

h.prototype.轮廓宽=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.outlineWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.outlineWidth=value;}}
	};

h.prototype.边框_下部_左边_形状=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.borderBottomLeftRadius=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottomLeftRadius=value;}}
	};

h.prototype.边框_下部_右边_形状=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderBottomRightRadius=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderBottomRightRadius=value;}}
	};
h.prototype.边框图像=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderImage=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderImage=value;}}
	};

h.prototype.边框_图像_超出=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderImageOutset=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderImageOutset=value;}}
	};

h.prototype.边框_图像_源=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderImageSource=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderImageSource=value;}}
	};

h.prototype.边框_图像_宽=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderImageWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderImageWidth=value;}}
	};

h.prototype.边框形状=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderRadius=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderRadius=value;}}
	};

h.prototype.边框_上部_左边_形状=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderTopLeftRadius=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTopLeftRadius=value;}}
	};

h.prototype.边框_上部_右边_形状=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.borderTopLeftRadius=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.borderTopLeftRadius=value;}}
	};

h.prototype.边框阴影=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.boxShadow=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.boxShadow=value;}}
	};


h.prototype.纵向溢出=function(value){
	var b={不裁剪:"visible",隐藏:"hidden",滚动:"scroll",改变大小:"auto",不显示框:"no-display",隐藏内容:"no-content"}
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.overflowY=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.overflowY=value;}}
	};

h.prototype.横向溢出=function(value){
	var b={不裁剪:"visible",隐藏:"hidden",滚动:"scroll",改变大小:"auto",不显示框:"no-display",隐藏内容:"no-content"}
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.overflowX=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.overflowX=value;}}
	};
		
h.prototype.溢出样式=function(value){//+-
	var b={改变框大小:"auto",加滚动条:"scrollbar",可移动:"move",自主移动:"marquee"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.overflowStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.overflowStyle=value;}}
	};

h.prototype.不透明度=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.opacity=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.opacity=value;}}
};

h.prototype.高度=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.height=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.height=value;}}
};

h.prototype.宽度=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.width=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.width=value;}}
	};

h.prototype.最大宽=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.maxWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.maxWidth=value;}}
	};

h.prototype.最大高=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.maxHeight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.maxHeight=value;}}
	};

h.prototype.最小宽=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.minWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.minWidth=value;}}
	};

h.prototype.最小高=function(d,value){
	if(this.f=="id"||this.p=="object"){this.k.style.minHeigth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.minHeigth=value;}}
	};

h.prototype.字体类型=function(value){
	if(this.f=="id"){this.k.style.fontFamily=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.fontFamily=value;}}
	};

h.prototype.字体大小=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.fontSize=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.fontSize=value;}}
	};

h.prototype.字体样式=function(value){
	var b={默认:"normal",斜体:"italic",倾斜:"oblique",继承:"inherit"}
	for(i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.fontStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.fontStyle=value;}}
};

h.prototype.字体粗细=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.fontWeight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.fontWeight=value;}}
};

h.prototype.外边距=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.margin=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.margin=value;}}
	};
	
h.prototype.下外边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.marginBottom=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.marginBottom=value;}}
};
h.prototype.左外边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.marginLeft=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.marginLeft=value;}}
};
h.prototype.右外边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.marginRight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.marginRight=value;}}
};
h.prototype.上外边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.marginTop=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.marginTop=value;}}
};
h.prototype.内边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.padding=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.padding=value;}}
};
h.prototype.下内边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.paddingBottom=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.paddingBottom=value;}}
};

h.prototype.左内边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.paddingLeft=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.paddingLeft=value;}}
};

h.prototype.右内边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.paddingRight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.paddingRight=value;}}
};

h.prototype.上内边距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.paddingTop=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.paddingTop=value;}}
};

h.prototype.列表样式=function(value){
	var b={文本内:"inside",文本外:"outside",继承:"inherit",无标记:"none",实线圆:"disc",空心圆:"circle",实心方块:"square",小数:"decimal",零开头数字:"decimal-leading-zero",小写罗马数字:"lower-roman",大写罗马数字:"upper-roman",小写英文字母:"lower-alpha",大写英文字母:"upper-alpha",小写希腊字母:"lower-greek",小写拉丁字母:"lower-latin",大写拉丁字母:"upper-latin",希伯来编号:"hebrew",亚美尼亚编号:"armenian",乔治亚编号:"georgian",表意数字:"cjk-ideographic",日文假名:"hiragana"};
	var h=value.split(" ");
	var g="";
	for(var j in h){
		for(var i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
		value=g;
if(this.f=="id"||this.p=="object"){this.k.style.listStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.listStyle=value;}}
	};
	
h.prototype.列数=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.columnCount=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnCount=value;}}
};

h.prototype.列_填充=function(value){//**
	var b={均衡:"balance",自动:"auto"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.columnFill=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnFill=value;}}
	};//**

h.prototype.列_间隔=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.columnGap=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnGap=value;}}
};
		
h.prototype.列_规定=function(value){
	var b={无:"none",隐藏:"hidden",点状:"dotted",虚线:"dashed",实线:"solid",双线:"double",凹槽:"groove",垄起:"ridge",内凹:"inset",外凸:"outset"};
	var h=value.split(" ");
	var g="";
	for(var j in h){
		for(var i in b){
			if(h[j]==i){
					h[j]=b[i];
					g=h.join(" ");
					}
			}
		}
	value=g;
	if(this.f=="id"||this.p=="object"){this.k.style.columnRule=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnRule=value;}}
	};

h.prototype.列_颜色=function(value){
	if(this.f=="id"||this.p=="object"){this.k.style.columnRuleColor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnRuleColor=value;}}
	};

h.prototype.列_样式=function(value){
	var b={无:"none",隐藏:"hidden",点状:"dotted",虚线:"dashed",实线:"solid",双线:"double",凹槽:"groove",垄起:"ridge",内凹:"inset",外凸:"outset"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.columnRuleStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnRuleStyle=value;}}
	};

h.prototype.列_宽度=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.columnRuleWidth=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columnRuleWidth=value;}}
};

h.prototype.列=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.columns=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.columns=value;}}
};

//定位 

h.prototype.下=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.bottom=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.bottom=value;}}
};//++

h.prototype.清除=function(value){
	var b={左右清除:"clear",左边:"left",右边:"right",继承:"inherit",默认:"none"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.clear=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.clear=value;}}
	};//**

h.prototype.裁剪=function(value){
	var b={默认:"auto",继承:"inherit",矩形:"rect"};
	if(value.slice(0,2)=="矩形"){
		value='rect'+value.slice(2,value.length);
		}else{
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
		}
	if(this.f=="id"||this.p=="object"){this.k.style.clip=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.clip=value;}}
	},//++

h.prototype.光标形状=function(value){
	var b={默认:"default",默认:"auto",十字线:"crosshair",手形:"pointer",可移动:"move",向左移动:"e-resize",向上右移动:"ne-resize",上左移动:"nw-resize",向上移动:"n-resize",下右移动:"se-resize",下左移动:"sw-resize",向下移动:"s-resize",向左移动:"w-resize",指示文本:"text",沙漏:"wait",帮助:"help"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.cursor=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.cursor=value;}}
	};//++
		
h.prototype.是否显示=function(value){//=====================
	var b={不显示:"none",显示:"block"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.display=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.display=value;}}
	};//++
		
h.prototype.居于=function(value){//============================================
	var b={右边:"right",左边:"left",默认:"none",继承:"inherit"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.float=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.float=value;}}
	};//++
	
h.prototype.上=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.top=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.top=value;}}
};

h.prototype.左=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.left=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.left=value;}}
};//++

h.prototype.右=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.right=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.right=value;}}
};//++

h.prototype.堆叠顺序=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.Zindex=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.Zindex=value;}}
};//+*

h.prototype.定位=function(value){
	var b={绝对:"absolute",相对:"relative",固定:"fixed",静态:"static"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
if(this.f=="id"||this.p=="object"){this.k.style.position=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.position=value;}}
	};//++

h.prototype.颜色=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.color=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.color=value;}}
};//++

h.prototype.文本方向=function(value){
	var b={左到右:"ltr",右到左:"rtl",继承:"inherit"};
		for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.direction=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.direction=value;}}
	};//++

h.prototype.字间距=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.letterSpacing=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.letterSpacing=value;}}
};//++

h.prototype.行高=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.lineHeight=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.lineHeight=value;}}
};//++

h.prototype.对齐方式=function(value){ 
	var b={自动:"auto",禁用:"none",调整字间距:"inter-word",表意文字排齐:"inter-ideograph",拉伸字符排齐:"kashida"};
	for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.textJustify=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.textJustify=value;}}
	};//**
		
h.prototype.文本对齐=function(value){// textJustify
	var b={左对齐:"left",右对齐:"right",居中:"center",两端对齐:"justify",继承:"inherit"};
	for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.textAlign=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.textAlign=value;}}
	};//++
	
h.prototype.大小写=function(value){
	var b={默认:"none",大写开头:"capitalize",全部大写:"uppercase",全部小写:"lowercase",继承:"inherit"};
	for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.textTransform=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.textTransform=value;}}
	};//++
		
h.prototype.首行缩进=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.textIndent=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.textIndent=value;}}
};//++

h.prototype.空格处理=function(value){
	var b={默认:"normal",不换行:"nowrap",保留空白换行:"pre-wrap",合并空白:"pre-line",继承:"inherit"};
	for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.whiteSpace=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.whiteSpace=value;}}
	};//++
		
h.prototype.文本阴影=function(value){
if(this.f=="id"||this.p=="object"){this.k.style.textShadow=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.textShadow=value;}}
};//++

		
h.prototype.整字换行=function(value){
	var b={段字点换行:"normal",整词内换行:"break-word"};
	for(var i in b){
			if(value==i){
				value=b[i]
				}
			}
	if(this.f=="id"||this.p=="object"){this.k.style.wordWrap=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.wordWrap=value;}}
	};//++
		

h.prototype.动画=function(obj){
	var b={旋转:"rotate",二D矩阵:"matrix",三D矩阵:"matrix3d",二D平移:"translate",三D平移:"translate3d",x平移:"translateX",y平移:"translateY",z平移:"translateZ",二D缩放:"scale",三D缩放:"scale3d",x缩放:"scaleX",y缩放:"scaleY",z缩放:"scaleZ",三D旋转:"rotate3d",x旋转:"rotateX",y旋转:"rotateY",z旋转:"rotateZ",xy倾斜:"skew",x倾斜:"skewX",y倾斜:"skewY",透视图:"perspective",原点:"transformOrigin"};
	var g="";
	for(var i in obj){
		for(var j in b){
			if(i==j){
				g+=b[j]+"("+obj[i]+")"+" ";
				}
			}
		}
		if(this.f=="id"||this.p=="object"){this.k.style.transform=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.transform=value;}}
	};
	
h.prototype.动画类型=function(value){//++//============
	var b={三D:"preserve-3d",二D:"preserve-2d"};
	for(i in b){
			if(value==i){
				value=b[i]
				}
			}
		if(this.f=="id"||this.p=="object"){this.k.style.transformStyle=value;}else{for(var i=0;i<this.k.length;i++){this.k[i].style.transformStyle=value;}}
		
	};
	
	
window.样式=function(id,t){return new h(id,t)}

//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


function $文档(id,x){
	this.ID=id;
	if(typeof id!=="object"){
			var w=id.split("=");this.k=w[0];
			switch(w[0]){
				case "id":var a;a=document.getElementById(w[1]);this.id=a;if(x=="*"){ return a};
				break;
				case "类":var b;b=document.getElementsByClassName(w[1]);this.id=b;if(x=="*"){return b;}
				break;
				case "名称":var c;c=document.getElementsByName(w[1]);this.id=c;if(x=="*"){return c;}
				break;
				case "标签":var d;d=document.getElementsByTagName(w[1]);this.id=d;if(x=="*"){return d;}
				break;	
				case "class":var b_;b_=document.getElementsByClassName(w[1]);this.id=b_;if(x=="*"){return b_;}
				break;
				case "name":var c_;c_=document.getElementsByName(w[1]);this.id=c_;if(x=="*"){return c_;}
				break;
				case "tag":var d_;d_=document.getElementsByTagName(w[1]);this.id=d_;if(x=="*"){return d_;}
				
				case "文档对象":var e;e=window.document;this.id=e;if(x=="*"){return e;}
				break;
				//default:var e;e=window.document;this.id=e;if(x=="*"){return e;}
				}
	      }else{this.id=id;this.p="object";if(x=="*"){return id;}}
	   }
		
	$文档.prototype.获取内容=function(x){//++
	if(this.k=="id"||this.p=="object"){
		switch(x){
			case "html":return this.id.innerHTML;
			break;
			case "纯文本":return this.id.innerText;
			break;
			default:return this.id.innerHTML;
			}
	}else{
		switch(x){
			case "html":var a=[];for(var i=0;i<this.id.length;i++){
				var z=this.id;
				a.push(z[i].innerHTML)
				}
				return a;
			break;
			case "纯文本":var b=[];for(var i=0;i<this.id.length;i++){
				var z=this.id;
				b.push(z[i].innerText)
				}
				return b;
			
			//return this.id.innerText;
			break;
			default:var f=[];for(var j=0;j<this.id.length;j++){var p=this.id;f.push(p[j].innerHTML)};return f;
			}
		}
 }
		
	$文档.prototype.添加内容=function(d){
		if(this.k=="id"||this.p=="object"){
			this.id.innerHTML+=d;
			}else{
				var x=this.id;
				for(var i=0;i<x.length;i++){
					x[i].innerHTML+=d;
					}
		}
	}//++
	
	$文档.prototype.写入内容=function(d){
		if(this.k=="id"||this.p=="object"){
			this.id.innerHTML=d;
			}else{
			var a=this.id;
			for(var i=0;i<a.length;i++){
				a[i].innerHTML=d;
				}
			}
	}//++
	
	
	$文档.prototype.获取文本框内容=function(){
				var a=[];
		if(this.k=="id"||this.p=="object"){
		return this.id.value;
		}else{
		var b=this.id;
			for(var i=0;i<b.length;i++){
				a.push(b[i].value);
			}
			return a;
		}
	}//++
	
	$文档.prototype.写入文本框内容=function(d){
		
		if(this.k=="id"||this.p=="object"){
		this.id.value=d;
		}else{
			var b=this.id;
			for(var i=0;i<b.length;i++){
				b[i].value=d;
				}
			}
	
	}//++
	
	$文档.prototype.添加文本框内容=function(d){
		if(this.k=="id"||this.p=="object"){
			this.id.value+=d;
			}else{
			var b=this.id;
			for(var i=0;i<b.length;i++){
				b[i].value+=d;
				}
			}
	
	}//++
	
	$文档.prototype.全部元素=function(){return this.id.all;}//++
	$文档.prototype.全部表单=function(){return this.id.forms;}//++
	$文档.prototype.全部图片=function(){return this.id.images;}//++
	$文档.prototype.全部链接=function(){return this.id.links;}//++
	$文档.prototype.小饼干储存=function(){return this.id.cookie;}//+-
	$文档.prototype.文档域名=function(){return this.id.domain;}
	$文档.prototype.最后修改日期=function(){return this.id.lastModified;}//++
	$文档.prototype.文档url=function(){return this.id.referrer;}//+-
	$文档.prototype.获取文档标题=function(){return this.id.title;}//++
	$文档.prototype.设置文档标题=function(d){return this.id.title=d;}//++
	$文档.prototype.当前url=function(){return this.id.URL;}//++
	$文档.prototype.写入=function(data){this.id.write(data);}//++
	$文档.prototype.换行写入=function(data){this.id.write("<br/>"+data);}//++
	
	
	
	//2021.5.16
	
	$文档.prototype.内容类型=function(){return this.id.contentType};
	
	
	
	$文档.prototype.添加=function(content,x){
			var b=this.id;
		if(typeof content=="string"){
			switch(x){
				case "+":if(this.k=="id"){this.id.innerHTML+=content;}else{
					for(var i=0;b.length;i++){
						b[i].innerHTML+=content;
						}
					}
				break;
				case "=":if(this.k=="id"){this.id.innerHTML=content;}else{
					for(var i2=0;i2<b.length;i2++){
						b[i2].innerHTML=content;
						}
					}
				break;
				default:this.id.innerHTML=content;
				}
			}else{
				switch(x){
				case "+":if(this.k=="id"){this.id.appendChild(content);}else{
					for(var i2=0;i2<b.length;i2++){
						b[i2].appendChild(content);
						}
					}
				break;
				case "=":if(this.k=="id"){this.id.childNodes=content;}else{
					for(var i3=0;i2<b.length;i3++){
						b[i3].childNodes(content);
						}
					}
				break;
				default:this.id.childNodes=content;
				}
			   }
		if(this.p=="object"){this.id.appendChild(content);}
		}//++
	
	$文档.prototype.属性赋值=function(key,data){//++
			var b={类:"class",id:"id",名称:"name",源文件:"src",超链接:"href",数据:"data-*",快捷键:"accesskey",可编辑性:"contenteditable",上下文菜单:"contextmenu",文本方向:"dir",可拖放性:"draggable",隐藏:"hidden",语言:"lang",tab键次序:"tabindex",标题:"title",翻译:"translate",替代文本:"alt",下载:"download",目标:"target",自动播放:"autoplay",控件:"controls",循环:"loop",静音:"muted",预加载:"preload",检查:"checked",表单:"form",字节间隔:"step",只读:"readonly",宽度:"width",高:"height",值:"value",自动完成:"autocomplete",提交地址:"action",表格边框宽:"border",单元格内边距:"cellpadding",单元格外边距:"cellspacing",类型:"type"};
		
		var c={自动播放:"autoplay",控件:"controls",循环:"loop",静音:"muted",预加载:"preload",检查:"checked",只读:"readonly",按钮:"button",检查框:"checkbox",文件:"file",隐藏:"hidden",图像:"image",密码:"password",发送:"radio",重置:"reset",提交:"submit",文本:"text"};
		
		for(var j in c){
			if(j==data){
				data=c[j]
			}
		}
					
		for(var i in b){
			if(i==key){
			key=b[i]
			}
		}
		if(this.k=="id"||this.p=="object"){
			this.id.setAttribute(key,data);
			}else{
				var w=this.id;
				for(var i=0;i<w.length;i++){
					w[i].setAttribute(key,data);
					}
				w="";
				}
		}
		
   $文档.prototype.属性取值=function(key){//++
		var b={类:"class",id:"id",名称:"name",源文件:"src",超链接:"href",数据:"data-*",快捷键:"accesskey",可编辑性:"contenteditable",上下文菜单:"contextmenu",文本方向:"dir",可拖放性:"draggable",隐藏:"hidden",语言:"lang",tab键次序:"tabindex",标题:"title",翻译:"translate",替代文本:"alt",下载:"download",目标:"target",自动播放:"autoplay",控件:"controls",循环:"loop",静音:"muted",预加载:"preload",检查:"checked",表单:"form",字节间隔:"step",只读:"readonly",宽度:"width",高:"height",值:"value",自动完成:"autocomplete",提交地址:"action",表格边框宽:"border",单元格内边距:"cellpadding",单元格外边距:"cellspacing",类型:"type"};
		
		  for(var i in b){
			if(i==key){
			key=b[i]
				}
			}
			

		if(this.k=="id"||this.p=="object"){
			return this.id.getAttribute(key);
			}else{
				var a=[];
				for(var e=0;e<this.id.length;e++){
					a.push(this.id[e].getAttribute(key))
					}
				return a;
				}
		}//++
		
	$文档.prototype.子节点集=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.childNodes;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].childNodes);
			}
		return a;
		}
	}//+-///////////
	$文档.prototype.子节点=function(){
		if(this.k=="id"||this.p=="object"){
		return this.id.children;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].children[i])
			}
		return a;
		}
	
	}//++
	
	$文档.prototype.首子节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.firstChild;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].firstChild);
			}
		}
		return a;
	}//+-
	
	$文档.prototype.尾子节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.lastChild;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].lastChild);
			}
		}
		return a;
	}//+-
	
	$文档.prototype.父节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.parentNode;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].parentNode);
			}
		}
		return a;
	}//++
	
	$文档.prototype.兄弟节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.parentNode.children;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].parentNode.children);
			}
		}
	return a;
	}//++
	
	$文档.prototype.上节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.previousElementSibling;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].previousElementSibling);
			}
		}
		return a;
	}//++
	$文档.prototype.下节点=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.nextElementSibling;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].nextElementSibling);
			}
		}
	return a;
	}
	$文档.prototype.位置元素=function(x,y){return this.id.elementFromPoint(x,y);}//**///////////////////
	
	$文档.prototype.属性=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.attributes;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].attributes);
			}
		}
	return a;
	}//++
    $文档.prototype.克隆=function(){
		if(this.k=="id"||this.p=="object"){
			return this.id.cloneNode(true);}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].cloneNode(true));
			}
		}
	return a;
	}//++
	
	$文档.prototype.焦点=function(){
		if(this.k=="id"||this.p=="object"){
			this.id.focus();}else{
		for(var i=0;i<this.id.length;i++){
			this.id[i].focus();
			}
		}
	
	}//++//////////
	$文档.prototype.获取节点属性=function(shuXing){
		if(this.k=="id"||this.p=="object"){
			return this.id.getAttributeNode(shuXing).value;}else{
		var a=[];
		for(var i=0;i<this.id.length;i++){
			a.push(this.id[i].getAttributeNode(shuXing).value);
			}
		}
	return a;
	}//++
	$文档.prototype.属性存在=function(shuXing){
		if(this.k=="id"||this.p=="object"){
			return this.id.hasAttribute(shuXing);}else{
	var a=[];
	for(var i=0;i<this.id.length;i++){
		a.push(this.id[i].hasAttribute(shuXing));
		}
	}
	return a;
	}//++

	$文档.prototype.访问键=function(key){
		if(this.k=="id"||this.p=="object"){
			this.id.accessKey=key;}else{//需转换为大写
		for(var i=0;i<this.id.length;i++){
			this.id[i].accessKey=key;;
			}
		}
	}//++
	
	
	$文档.prototype.执行命令=function(x,b,c){
		var v={背景颜色:{a:"backColor"},加粗:{a:"bold"},拷贝:{a:"copy"},创建连接:{a:"createLink"},复制到剪切板:{a:"cut"},/*文字缩小:{a:"decreaseFontSize"},*/删除选中:{a:"delete"},字体改名:{a:"fontName"},字体大小:{a:"fontSize"},字体颜色:{a:"foreColor"},/*标题:{a:"heading"},*/缩进:{a:"indent"},插入水平线:{a:"insertHorizontalRule"},插入html:{a:"insertHTML"},有序列表:{a:"insertOrderedList"},无序列表:{a:"insertUnorderedList"},插入文本:{a:"insertText"},斜体:{a:"italic"},居中:{a:"justifyCenter"},文本对齐:{a:"justifyFull"},左对齐:{a:"justifyLeft"},右对齐:{a:"justifyRight"},/*减少缩进:{a:"outdent"},*/粘贴:{a:"paste"},重做:{a:"redo"},清除格式:{a:"removeFormat"},全选:{a:"selectAll"},删除线:{a:"strikeThrough"},下角标:{a:"subscript"},上角标:{a:"superscript"},下划线:{a:"underline"},撤销:{a:"undo"},清除链接:{a:"unlink"}}	
			for(var i in v){
				if(x==i){
					this.id.execCommand(v[i].a,b,c);
					}
				}
		}
		
		
	$文档.prototype.样式=function(value){//++  #################2021.8.15
		var k="";
		var x=true;
		var e=[")","{","'",'"',"/","\n",";"];
		var t=this.ID;
		var t2=t.toString("utf-8");
		for(var j=0;j<e.length;j++){
			for(var n=0;n<t2.length;n++){
				if(t2[n]==e[j]){
					x=false;
					break;
					}
				}
			}
		
		for(var n in value){
			var a=value[n]
			for(var n1 in a){
				for(var n2 in e){
					if(a[n1]==e[n2]){
						x=false;
						break;
						}
					}
				}
				
		}
			var hk;
		if(typeof this.ID=="object"){
			if(this.ID.hasAttribute("id")==true){
				hk="id="+this.ID.getAttribute("id");
				}else if(this.ID.hasAttribute("class")==true){
					hk="class="+this.ID.getAttribute("class");
					}else if(this.ID.hasAttribute("name")==true){
						hk="name="+this.ID.getAttribute("name");
						}	
			}else{hk=this.ID}
			
		for(var i in value){
		k+="样式('"+hk+"')."+i+"('"+value[i]+"');";
		}
		if(x==true){
			eval(k);
			}else{
				alert("传入的代码非法");
				}
		}
		
		
	window.文档=function(a,b){return new $文档(a,b)};
	
	
	function $shijian(id,Event,func){         //++ **
		var c={改变:"change",鼠标单击:"click",上下文菜单:"contextmenu",鼠标双击:"dblclick",按下鼠标:"mousedown",鼠标移入:"mouseenter",鼠标移出:"mouseleave",鼠标移动:"mousemove",鼠标移至:"mouseover",鼠标移开:"mouseout",松开鼠标:"mouseup",按下键盘:"keydown",按下并松开键盘:"keypress",松开键盘:"keyup",中断:"abort",即将刷新或关闭:"beforeunload",加载:"load",页面跳转:"pagehide",卸载:"unload",失去焦点:"blur",获得焦点:"focus",即将获取焦点:"focusin",即将失去焦点:"focusout",输入:"input",重置:"reset",搜索:"search",拷贝:"copy",剪切:"cut",粘贴:"paste",开始打印:"beforeprint",打印结束:"afterprint",中断:"abort",可播放:"canplay",正常播放:"canplaythrough",时长改变:"durationchange",无播放列表:"emptied",播放结束:"ended",暂停:"pause",开始播放:"play",速度改变:"ratechange",重置播放位置:"seeking",失速:"stalled",数据暂停:"suspend",音量改变:"volumechange",等候:"waiting",动画结束:"animationend",动画重复:"animationiteration",动画开始:"animationstart",过渡完成:"animationstart",滚轮:"wheel",在线:"online",离线:"offline",显示:"show",属性改变:"propertychange",状态改变:"readystatechange",更新完成:"afterupdate",即将复制:"beforecopy",即将删除:"beforecut",即将粘贴:"beforepaste",即将卸载:"beforeunload",拖拽:"drag",结束拖拽:"dragend",拖拽至:"dragenter",拖拽移出:"dragleave",正在拖拽:"dragover",开始拖拽:"dragstart",拖拽释放:"drop",错误:"error",信息:"message",鼠标滚轮:"mousewheel",大小改变:"resize",滚动:"scroll",选择:"select",提交:"submit",
		}

		var e0=Event;
		for(i in c){
			if(Event==i){
				Event=c[i];
				break;
				}else{
					Event=e0;
					}
			}
					if(typeof id=="string"){
			            var w=id.split("=");
					    if(w[0]=="id"){document.getElementById(w[1]).addEventListener(Event,func);}
						
						if(w[0]=="class"||w[0]=="类"){
							for(var n=0;n<document.getElementsByClassName(w[1]).length;n++){
								document.getElementsByClassName(w[1])[n].addEventListener(Event,func);
								}
							}
						if(w[0]=="name"||w[0]=="名称"){
							for(var n=0;n<document.getElementsByName(w[1]).length;n++){
								document.getElementsByName(w[1])[n].addEventListener(Event,func);
								}
							}
						if(w[0]=="tag"||w[0]=="标签"){
							for(var n=0;n<document.getElementsByTagName(w[1]).length;n++){
								document.getElementsByTagName(w[1])[n].addEventListener(Event,func);
								}
							}
			         }else{
						  id.addEventListener(Event,func)
						 }
			
	};
	
		u.事件=function(id,Event,func){         //++ **
		$shijian(id,Event,func)
	};
	
	
			$文档.prototype.事件=function(name,func){
	
	 $shijian(this.ID,name,func)
	
	}
		
	
	
	u.创建标签=function(名称,选项,包含){
	var b={超链接:"a",块:"div",段落:"p",缩写:"abbr",地址:"address",音频:"audio",粗体:"b",链接地址:"base",文本方向:"bdi",文字方向:"bdo",长引文:"blockquote",换行:"br",按钮:"button",画布:"canvas",下拉列表:"datalist",题注:"caption",删除:"del",细节:"details",目录:"dir",嵌入:"embed",表单:"form",框架集:"frameset",标题1:"h1",标题2:"h2",标题3:"h3",标题4:"h4",标题5:"h5",标题6:"h6",水平线:"hr",斜体:"i",框架:"iframe",图像:"img",输入:"input",表格:"label",列表项:"li",链接:"link",图像映射:"map",菜单:"menu",导航:"nav",嵌套:"nest",对象:"object",有序列表:"ol",选项组:"optgroup",选项:"option",输出:"output",段落:"p",进度条:"progress",短引用:"q",脚本:"script",选择:"select",来源:"source",范围:"span",强调文本:"strong",样式:"style",上标:"sub",下标:"sup",表格:"table",表格主体:"tbody",单元格:"td",文本域:"textarea",表格注脚:"tfoot",表头:"thead",时间:"time",文档标题:"title",表格行:"tr",无序列表:"ul",变量:"var",视频:"video",元数据:"meta",主体:"body",独立区域:"article",附加区域:"aside",尾部:"footer",头部:"header",自定义:"dl",项目:"dt",描述:"dd",图形题注:"figcaption",图形:"figure",条目:"li",视频:"video",图片:"picture",列:"col",列组:"colgroup",表体:"tbody",表尾:"tfoot",表头:"thead",头单元格:"th",表行:"tr",数据列表:"datalist",控件组:"fieldset",标签:"label",组标题:"legend",对话框:"dialog",摘要:"summary",槽:"slot",模板:"template"};
		var c={类:"class",id:"id",名称:"name",源文件:"src",href:"href",超链接:"href",数据:"data-*",快捷键:"accesskey",可编辑性:"contenteditable",上下文菜单:"contextmenu",文本方向:"dir",可拖放性:"draggable",隐藏:"hidden",语言:"lang",tab键次序:"tabindex",标题:"title",翻译:"translate",超链接:"href",替代文本:"alt",下载:"download",目标:"target",自动播放:"autoplay",控件:"controls",循环:"loop",静音:"muted",预加载:"preload",检查:"checked",表单:"form",名称:"name",字节间隔:"step",只读:"readonly",宽度:"width",高度:"height",值:"value",自动完成:"autocomplete",提交地址:"action",表格边框宽:"border",单元格内边距:"cellpadding",单元格外边距:"cellspacing",类型:"type",改变:"onchange",鼠标单击:"onclick",鼠标双击:"ondblclick",按下鼠标:"onmousedown",鼠标移入:"onmouseenter",鼠标移出:"onmouseleave",鼠标移动:"onmousemove",鼠标移至:"onmouseover",鼠标移开:"onmouseout",松开鼠标:"onmouseup",按下键盘:"onkeydown",按下并松开键盘:"onkeypress",松开键盘:"onkeyup",中断:"onabort",加载:"onload",卸载:"onunload",失去焦点:"onblur",获得焦点:"onfocus",     即将卸载:"onbeforeunload",上下文菜单:"oncontextmenu",拖拽:"ondrag",结束拖拽:"ondragend",拖拽至:"ondragenter",拖拽移出:"ondragleave",正在拖拽:"ondragover",开始拖拽:"ondragstart",拖拽释放:"ondrop",错误:"onerror",信息:"onmessage",鼠标滚轮:"onmousewheel",大小改变:"onresize",滚动:"onscroll",选择:"onselect",提交:"onsubmit",
};
	var e;
	var name="";
	var v="";
	var r1=false;//var r2=false;
		for(var j in b){
			if(名称==j){
				name=b[j];
				r1=true;
				}
			}
			
		if(r1==false){
			name=名称;
			}
			

	for(var i in 选项){
		for(var j in c){
			if(i==j){
				v+=c[j]+'="'+选项[i]+'" ';
				选项[i]="";
				}
			}
		}
		
		for(var n in 选项){
			if(选项[n]!==""){
				v+=n+'="'+选项[n]+'" '
				}
			}

	if(name=="input"||name=="img"||name=="br"||name=="hr"||name=="param"||name=="meta"||name=="link"||name=="source"){
		e="<"+name+" "+v+" />";
		}else{
			var h="";
			for(var q=0;q<包含.length;q++){h+=包含[q]}
			e="<"+name+" "+v+">"+h+"</"+name+">";
			}
		return e;	
	}	


function hqys(id,cs){
	var css_2={
	背景颜色:"backgroundColor",
    背景图:"backgroundImage",
    背景附着:"backgroundAttachment",
    背景位置:"backgroundPosition",
    背景图重复:"backgroundRepeat",
    背景剪裁:"backgroundClip",
    背景原点:"backgroundOrigin",
    背景大小:"backgroundSize",
	
	边框:"border",
	边框下部:"borderBottom",
	边框下部颜色:"borderBottomColor",
	边框下部样式:"borderBottomCtyle",
	边框下部宽:"borderMottomWidth",
	边框颜色:"borderColor",
	边框左:"borderLeft",
	边框左边颜色:"borderLeftColor",
	边框左边样式:"borderLeftStyle",
	边框左边宽:"borderLeftWidth",
	边框右边:"borderRight",
	边框右边颜色:"borderRightColor",
	边框右边样式:"borderRightStyle",
	边框右边宽:"borderRightWidth",
	边框样式:"borderStyle",
	边框顶部:"borderTop",
	边框顶部颜色:"borderTopColor",
	边框顶部样式:"borderTopStyle",
	边框顶部宽:"borderTopWidth",
	边框宽:"borderWidth",
	轮廓:"outline",
	轮廓颜色:"outlineColor",
	轮廓样式:"outlineStyle",
	轮廓宽:"outlineWidth",
	边框_下部_左边_形状:"borderBottomLeftRadius",
	边框_下部_右边_形状:"borderBottomRightRadius",
	边框图像:"borderImage",
	边框_图像_超出:"borderImageOutset",
	边框_图像_铺排:"borderImageRepeat",//**
	边框_图像_偏移:"borderImageSlice",
	边框_图像_源:"borderImageSource",
	边框_图像_宽:"borderImageWidth",
	边框形状:"borderRadius",
	边框_上部_左边_形状:"borderTopLeftRadius",
	边框_上部_右边_形状:"borderTopRightRadius",
	边框阴影:"boxShadow",
	
	//box ++1
	
	纵向溢出:"overflowY",
	横向溢出:"overflowX",
	溢出样式:"overflowStyle",
	旋转:"rotation",
	
	//color
	不透明度:"opacity",
	
	//尺寸
	"高度":"height",
	"宽度":"width",
	最大宽:"maxWidth",
	最大高:"maxHeight",
	最小宽:"minWidth",
	最小高:"minHeigth",
	
	//字体++2
	
	字体:"font",
	字体类型:"fontFamily",
	字体大小:"fontSize",
	字体样式:"fontStyle",//**
	字体粗细:"fontWeight",
	字体方向:"fontSizeAdjust",
	字体伸展:"fontStretch",//**
	
	//外边距
	
	外边距:"margin",
	下外边距:"marginBottom",
	左外边距:"marginLeft",
	右外边距:"marginRight",
	上外边距:"marginTop",
	
	//内边距
	
	内边距:"padding",
	下内边距:"paddingBottom",
	左内边距:"paddingLeft",
	右内边距:"paddingRight",
	上内边距:"paddingTop",
	
	//盒子
	
	盒子对齐:"boxAlign",
	盒子方向:"boxDirection",
	伸缩盒:"boxFlex",
	伸缩盒分组:"boxFlexGroup",
	盒子排布:"boxLines",
	盒子_顺序_组:"boxOrdinalGroup",
	盒子排向:"boxOrient",//**
	盒子挤出:"boxPack",
	
	//内容生成
	内容:"content",
	内容增量:"counterIncrement",
	内容重置:"counterReset",
	引用:"quotes",
	
	//网格
	
	网格_列:"gridColumns",
	网格_行:"gridRows",
	
	//超链接
	
	列表样式:"listStyle",
	列表_样式_图片:"listStyleImage",
	列表_样式_位置:"listStylePosition",
	列表类型:"listStyleType",//**
	
	//多列
	列数:"columnCount",
	列_填充:"columnFill",
	列_间隔:"columnGap",
	列_规定:"columnRule",
	列_颜色:"columnRuleColor",
	列_样式:"columnRuleStyle",//**
	列_宽:"columnRuleWidth",
	列_跨度:"columnSpan",
	列宽:"columnWidth",
	列:"columns",
	
	//表格
	
	是否合并:"borderCollapse",
	边框间距:"borderSpacing",
	标题位置:"captionSide",
	单元格:"emptyCells",//**,
	表格布局:"tableLayout",//**
	
	//定位 **
	
	
	下:"bottom",
	清除:"clear",
	裁剪:"clip",
	光标形状:"cursor",
	显示方式:"display",//**
	居于:"float",
	上:"top",
	左:"left",
	右:"right",
	堆叠顺序:"Zindex",
	定位:"position",
	
	//文本
	
	颜色:"color",
	文本方向:"direction",
	字间距:"letter-spacing",
	行高:"lineHeight",
	文本对齐:"textAlign",
	大小写:"textTransform",
	首行缩进:"textIndent",
	空格处理:"whiteSpace",//***
	字间距:"wordSpacing",
	规定标点:"hangingPunctuation",
	文本_重点:"textEmphasis",//***
	文本对齐:"textJustify",
	文本轮廓:"textOutline",
	文本溢出:"textOverflow",//**
	文本阴影:"textShadow",
	换行规则:"textWrap",
	非中文换行:"suppress",
	整字换行:"wordWrap",
	
	//2D,3D
	
	转换:"transform",
	过度属性:"transitionProperty",
	过度持续时间:"transitionDuration",
	过度速度曲线:"transitionTimingFunction",
	过度延时:"transitionDelay",
	}
	
	var k=id.split("=");
	var t="";
	var t0="";
	var a=[];
	switch(k[0]){
		case "id":for(var i in css_2){
		if(cs==i){
			t="t0=document.getElementById('"+k[1]+"').style."+css_2[i]+";";
			break;
			}else{
				t="t0=document.getElementById('"+k[1]+"').style."+cs+";";
				}
		};
		break;
		case "类":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByClassName('"+k[1]+"').length;i0++){t0=document.getElementsByClassName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByClassName('"+k[1]+"').length;i0++){t0=document.getElementsByClassName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		case "名称":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByName('"+k[1]+"').length;i0++){t0=document.getElementsByName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByName('"+k[1]+"').length;i0++){t0=document.getElementsByName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		case "class":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByClassName('"+k[1]+"').length;i0++){t0=document.getElementsByClassName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByClassName('"+k[1]+"').length;i0++){t0=document.getElementsByClassName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		case "name":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByName('"+k[1]+"').length;i0++){t0=document.getElementsByName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByName('"+k[1]+"').length;i0++){t0=document.getElementsByName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		
		
		case "标签":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByTagName('"+k[1]+"').length;i0++){t0=document.getElementsByTagName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByTagName('"+k[1]+"').length;i0++){t0=document.getElementsByTagName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		
		case "tag":for(var i in css_2){
		if(cs==i){
			t="for(var i0=0;i0<document.getElementsByTagName('"+k[1]+"').length;i0++){t0=document.getElementsByTagName('"+k[1]+"')[i0].style."+css_2[i]+";a.push(t0);}";
			break;
			}else{
				t="for(var i0=0;i0<document.getElementsByTagName('"+k[1]+"').length;i0++){t0=document.getElementsByTagName('"+k[1]+"')[i0].style."+cs+";a.push(t0);}";
				}
		};
		break;
		}
		eval(t);	

		if(k[0]=="id"){
		return t0;
		}else{
			return a;
			}
			
	}
		
	

	$文档.prototype.获取样式=function(style){
		var x1;
		
		var e=[")","{","'",'"',"/","\n",";"];
		var tu=this.ID+style;
		var t3=tu.toString("utf-8")
		var x=true;
		for(var j=0;j<e.length;j++){
			for(var n=0;n<t3.length;n++){
				if(t3[n]==e[j]){
					x=false;
					break;
					}
				}
			}
			
			var hk;
			if(typeof this.ID=="object"){
			if(this.ID.hasAttribute("id")==true){
				hk="id="+this.ID.getAttribute("id");
				}else if(this.ID.hasAttribute("class")==true){
					hk="class="+this.ID.getAttribute("class");
					}else if(this.ID.hasAttribute("name")==true){
						hk="name="+this.ID.getAttribute("name");
						}	
			}else{hk=this.ID}

		if(x==true){
		eval("x1=hqys('"+hk+"','"+style+"');");
		}else{
			alert("传入的参数非法")
			}
		return x1;
		}

	
	
u.数学={
	 E:Math.E,
	 LN2:Math.LN2,
	 LN10:Math.LN10,
	 圆周率:Math.PI,
	 SQRT1_2:Math.SQRT1_2,
	 SQRT2:Math.SQRT2,
	 绝对值:function(x){return Math.abs(x)},
	 反余弦:function(x){return Math.acos(x)},
	 反正弦:function(x){return Math.asin(x)},
	 反正切:function(x){return Math.atan(x)},
	 反正切2:function(y,x){return Math.atan2(y,x)},
	 上舍:function(x){return Math.ceil(x)},
	 余弦:function(x){return Math.cos(x)},
	 Exp:function(x){return Math.exp(x)},
	 下舍:function(x){return Math.floor(x)},
	 Log:function(x){return Math.log(x)},
	 最大值:function(x,y){return Math.max(x,y)},
	 最小值:function(x,y){return Math.min(x,y)},
	 幂:function(x,y){return Math.pow(x,y)},
	 随机数:function(){return Math.random()},
	 正弦:function(x){return Math.sin(x)},
	 平方根:function(x){return Math.sqrt(x)},
	 正切:function(x){return Math.tan(x)},
}


u.历史={  //+ -
	后退:function(){/////////////////////
		history.back();
		},
	前进:function(){
		history.forward();
	   },
	GO:function(num,url){
		history.go(num,url);
		}
}

u.浏览器={  //++
	浏览器名:navigator.appName,//++
	浏览器代码:navigator.appCodeName,
	产品名:navigator.product,//++
	版本:navigator.appVersion,
	用户代理:navigator.userAgent,
	运行平台:navigator.platform,
	语言:navigator.language,
	在线状态:navigator.onLine,
	java:navigator.javaEnabled()//++
	}
	
u.屏幕={ //++
	宽度:screen.width,
	高度:screen.height,
	可用宽度:screen.availWidth,
	可用高度:screen.availHeight,
	色深:screen.colorDepth,
	像素深度:screen.pixelDepth
	}
	
	
u.地址={  //++
	当前url:window.location.href,
	主机名:window.location.hostname,
	路径名:window.location.pathname,
	协议:window.location.protocol,
	端口:window.location.port,
	赋值:function(url){
		return window.location.assign(url);
		},
	加载:function(url){return window.location.href=url;},
	替换:function(url){return window.location.replace(url)},
	重载:function(url){return window.location.reload(url)}
	
	}

u.储存={
	    存入:function(key,data){  //++
		localStorage.setItem(key,data)
		},
		
		获取数据:function(key){ //++
			return localStorage.getItem(key)
		},
		全部数据:function(){  //++ $全部本地数据().key1
			return localStorage.valueOf();
		},
		删除数据:function(key){//++
			localStorage.removeItem(key);
		},
		清空数据:function(){//++
			localStorage.clear();
		},
		数据量:localStorage.length//++
	
	}
	
function arr(a){this.u=a;}
arr.prototype.末端添加=function(x){return this.u.push(x)};
arr.prototype.首端添加=function(x){return this.u.unshift(x);};
arr.prototype.去尾=function(){return this.u.pop()};
arr.prototype.去首=function(){return this.u.shift()};
arr.prototype.长度=function(){return this.u.length};
arr.prototype.拼切=function(a,b,c,d){return this.u.splice(a,b,c,d)};
arr.prototype.合并=function(x){return this.u.concat(x)};
arr.prototype.裁剪=function(a,b){return this.u.slice(a,b)};
arr.prototype.转字符串=function(x){return this.u.toString(x)};
arr.prototype.连接为字符串=function(x){return this.u.join(x)};
arr.prototype.反转=function(x){return this.u.reverse()};
arr.prototype.排序=function(x,func){return this.u.sort(func)};
arr.prototype.删除=function(x){delete this.u[x]};

u.数组=function(a){return new arr(a)};//++

	
function str(e){
	this.b=e;
	}
str.prototype.首现字符=function(x){return this.b.indexOf(x)};
str.prototype.尾现字符=function(x){return this.b.lastIndexOf(x)};
str.prototype.搜索=function(x){return this.b.search(x)};
str.prototype.裁剪=function(e1,e2){return this.b.slice(e1,e2)};
str.prototype.替换=function(e1,e2){return this.b.replace(e1,e2)};
str.prototype.大写=function(){return this.b.toUpperCase()};
str.prototype.小写=function(){return this.b.toLowerCase()};
str.prototype.合并=function(x){return this.b.concat(x)};
str.prototype.修剪=function(){return this.b.trim()};//--
str.prototype.以下标查找=function(e1){return this.b.charAt(e1)};
str.prototype.转为数组=function(e1){return this.b.split(e1);};
str.prototype.长度=function(){return this.b.length};

u.字符串=function(e){return new str(e)};//++

function $时间(){//++
	var k=new Date();
	this.d=k;
	}
    $时间.prototype.获取年=function(){return this.d.getFullYear();}
    $时间.prototype.获取月=function(){return this.d.getMonth()}
    $时间.prototype.获取日=function(){return this.d.getDate()}
	$时间.prototype.获取时=function(){return this.d.getHours()}
	$时间.prototype.获取分=function(){return this.d.getMinutes()}
	$时间.prototype.获取秒=function(){return this.d.getSeconds()}
	$时间.prototype.获取周=function(){return this.d.getDay()}
	$时间.prototype.获取毫秒=function(){return this.d.getMilliseconds()}
	
	$时间.prototype.设置年=function(a){return this.d.setFullYear(a)}
	$时间.prototype.设置月=function(a){return this.d.setMonth(a)}
	$时间.prototype.设置日=function(a){return this.d.setDate(a)}
	$时间.prototype.设置时=function(a){return this.d.setHours(a)}
	$时间.prototype.设置分=function(a){return this.d.setMinutes(a)}
	$时间.prototype.设置秒=function(a){return this.d.setSeconds(a)}
	$时间.prototype.设置毫秒=function(a){return this.d.setMilliseconds(a)}
	
	$时间.prototype.设置时间=function(a){return this.d.setTime(a)}
	$时间.prototype.获取时间=function(){return this.d.getTime()}

u.时间=function(a){return new $时间(a)};

function sbzb(){//++   获取鼠标坐标
	var event = event || window.event;
	this.k=event;
	}
	
sbzb.prototype.文档=function(){//++
	if (this.k.pageX || this.k.pageY) {
    var posX = event.pageX;
    var posY = event.pageY;
	var y={X:posX,Y:posY};
	return y;
}else{
	alert("浏览器不兼容")
	}
}
sbzb.prototype.屏幕=function(){//++
	if (this.k.screenX|| this.k.screenY) {
    var p1= this.k.screenX;
    var p2= this.k.screenY;
	var c={X:p1,Y:p2}
	return c;
	}
}
sbzb.prototype.客户端=function(){//++
	if (this.k.clientX|| this.k.clientY) {
    var p1= this.k.clientX;
    var p2= this.k.clientY;
	var c={X:p1,Y:p2}
	return c;
	}else{
	alert("浏览器不兼容")
	}
}

u.鼠标坐标=function(){return new sbzb();}//++


var Event_arr=[];

 u.注册事件=function(name,d){
	var t=[];
	t[0]=name;t[1]=d;
	Event_arr.push(t)
	}
u.监听事件=function(name,f){
	var h;
	for(var i=0;i<Event_arr.length;i++){
		var g=Event_arr[i][0];
		if(g==name){
			h=Event_arr[i][1];break;
			}
		}
		f(h);
	}
	
u.删除事件=function(name){for(var i=0;i<Event_arr.length;i++){if(name==Event_arr[i][0]){delete Event_arr[i];}}}


    u.新建数值=function(e){var w=new Number(e);return w;}
	u.新建字符串=function(n){return new String(n)}
	

	u.新建数组=function(){//++
		var a=new Array();
		for(var i=0;i<arguments.length;i++){
			a.push(arguments[i]);
			}	
		return a;
	}


function Json(d){//++
		 this.v=d;
		 }
	 Json.prototype.字符串=function(func,space){return JSON.stringify(this.v,func,space)};
	 Json.prototype.对象=function(func){return JSON.parse(this.v,func)};
	 
	 u.json=function(x){return new Json(x)};//++



function setCookie(c,v,days){//++
  var d = new Date();
  d.setTime(d.getTime()+(days*24*60*60*1000));
  var e = "expires="+d.toGMTString();
  document.cookie = c + "=" + v + "; " + e;
}

var Cookie={};

Cookie.设置=function(obj,time){//++
	for(var i in obj){
		setCookie(i,obj[i],time);
		}
}
Cookie.取值=function(cname){//++
  var name = cname + "=";
  var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) 
  {
    var c = ca[i].trim();
    if (c.indexOf(name)==0) return c.substring(name.length,c.length);
  }
  return "";
}

Cookie.检查=function(z){//++
  function f(g){
  var name = z + "=";
  var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) 
  {
    var c = ca[i].trim();
    if (c.indexOf(name)==0) return c.substring(name.length,c.length);
  }
  return "";
}
var name=f(z);
if (name!="") {return true;}else{return false; }
};

u.cookie=Cookie;//++

	 u.创建url=function(object){return URL.createObjectURL(object);};
	 u.选中获取=function(){return window.getSelection()};
	 u.浮点型=function(n){return parseFloat(n)};
	 u.整型=function(n){return parseInt(n)};
	 u.执行代码=function(x){eval(x)};
	 
	u.搜索=function(str1,str2){return str1.search(str2);}	
	u.替换=function(str1,str2,str3){return str1.replace(str2,str3);}
	u.判断匹配=function(str,e0){return e0.test(str);}
	u.执行匹配=function(str,e0){return e0.exec(str);}
	
window.周期性执行=function(func,time){setInterval(func,time)}	
window.延迟执行=function(func,time){setTimeout(func,time)}
window.取消周期执行=function(func){clearInterval(func)}
window.取消延迟执行=function(func){clearTimeout(func)}

window.警告=function(e){alert(e)};
window.提示=function(e1,e2){return prompt(e1,e2)}
window.审核=function(e){confirm(e)}
window.关闭窗口=function(a){a.close()}
window.打开窗口=function(url,x,a,b){open(url,x,a,b)}



//+==================================================
//===
u.引入模块=function(path){
	var js = document.createElement("script");
js.type = "text/javascript";
js.src =path;
document.getElementsByTagName("head")[0].appendChild(js);
	}
//==================================================

 function $ajax(){
	var w=new XMLHttpRequest();
	this.a=w; 
	}
	$ajax.prototype.打开=function(post,url){
		this.a.open(post,url);
		}
	$ajax.prototype.结束=function(x){
		this.a.send(x)
		}
	$ajax.prototype.变化=function(func){
		this.a.onreadystatechange=func;
		}
	$ajax.prototype.就绪状态=function(){
		return this.a.readyState;
		}
	$ajax.prototype.响应=function(x){
		switch(x){
			case "文本":return this.a.responseText;
			break;
			case "xml":return this.a.responseXML;
			break;
			case "text":return this.a.responseText;
			break;
			default:return this.a.responseText;
			}
		}
	$ajax.prototype.状态=function(){
		return this.a.status;
		}
		
	
	u.ajax=function(){return new $ajax()};
	
		
	function $blob(a,b){
		this.k=new Blob(a,b);
		}
		$blob.prototype.大小=function(){//++
			return this.k.size;
			}
		$blob.prototype.类型=function(){//++
			return this.k.type;
			}
		$blob.prototype.剪切=function(start,end,contentType){//**
			return this.k.slice(start,end,contentType)
			}	
		$blob.prototype.流=function(){//++
			return this.k.stream();
			}
		$blob.prototype.文本=function(){//++**
			return this.k.text();
			}
		$blob.prototype.数组缓冲区=function(){//++**
			return this.k.arrayBuffer();
			}	
	
	u.blob=function(){return new $blob(a,b)};
	
			
	function $读取文件(){
		this.a=new FileReader();
		}
	$读取文件.prototype.终止读取=function(){
		this.a.abort();
		}
	$读取文件.prototype.读取为二进制=function(file){
		return this.a.readAsBinaryString(file);
		}
	$读取文件.prototype.读取为url=function(file){
		return this.a.readAsDataURL(file);
		}
	$读取文件.prototype.读取为文本=function(file){
		return this.a.readAsText(file);
		}
	$读取文件.prototype.监听=function(x,func){
		switch(x){
			case "中断":this.a.onabort=func;
			break;
			case "出错":this.a.onerro=func;
			break;
			case "成功":this.a.onload=func;
			break;
			case "开始":this.a.onloadstart=func;
			break;
			case "进行中":this.a.onprogress=func;
			break;
			case "完成":this.a.onloadend=func;//func=function(){var 值=this.result}
			break;
			}
		}
	
	
	u.读取文件=function(){return new $读取文件()};

	window.zw=u;
	
	})(window);